package com.coderman.daoclient.utils;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

/**
 * Created by ${fanchunshuai} on 2017-7-27.
 *
 * @version: V1.0
 * @Desc:
 */
public class PropertiesUtils {
    /**
     * 将properties转换为map
     * @param properties
     * @return
     */
    public static Map<String,String> convert2MaP(Properties properties){
        Set<String> stringSet = properties.stringPropertyNames();
        Iterator<String> stringIterator = stringSet.iterator();
        Map<String,String> map = new HashMap<>();
        return map;
    }

}
